package com.liliudong.rommath.biz.sys.entity;

import com.liliudong.rommath.common.base.BaseEntity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 系统部门 实体类。
 *
 * @author liudong.li
 * @since 1.0.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(value = "sys_dept")
public class SysDept extends BaseEntity {

    /**
     * 部门编码
     */
    @Id(keyType = KeyType.None)
    private String code;

    /**
     * 部门名称
     */
    @Column(value = "name")
    private String name;

    /**
     * 上级部门编码
     */
    @Column(value = "parent_code")
    private String parentCode;

    /**
     * 描述
     */
    @Column(value = "description")
    private String description;

}
